package d04_extends;

public class Test02 {
    public static void main(String[] args) {
        //继承的好处
        Teacher t1=new Teacher();
        t1.setName("张三");
        t1.setAge(23);
        t1.setSkill("讲课");
        System.out.println(t1.getName());
        System.out.println(t1.getAge());
        System.out.println(t1.getSkill());

    }
}
